package com.example.fresheveryday.service.Impl;

import com.example.fresheveryday.po.CategorySaleDTO;
import com.example.fresheveryday.po.Productcategory;
import com.example.fresheveryday.mapper.ProductcategoryMapper;
import com.example.fresheveryday.service.ProductcategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Service
public class ProductcategoryServiceImpl extends ServiceImpl<ProductcategoryMapper, Productcategory> implements ProductcategoryService {
    @Autowired
    ProductcategoryMapper productcategoryMapper;
    @Override
    public List<Productcategory> getHomeProduct() {
        return productcategoryMapper.getHomeProduct();
    }

    @Override
    public List<CategorySaleDTO> getByCategorySale() {
        return productcategoryMapper.getByCategorySale();
    }

}
